<?php
namespace Application\Modules;

class News extends \Library\Controller\Controller
{

	public function __construct()
	{
	}
	
	public function indexAction()
	{
		if (MOD_TRACE && MOD_TRACE_CLASS_Application_Modules_News)
			var_dump("namespace Application\Modules; class News -> public function indexAction()");
		$news = new \Application\Models\News("localhost");
		$lastNews = $news->fetchAll("1 ORDER BY `update` DESC LIMIT 1");
		$this->setDataMod(array('modLastNewsTitle' 	=> "Last News",
								'lastNews' 			=> $lastNews));
	}

}